package com.cskaoyan.model.vo.wxorder.list;

import lombok.Data;

import java.util.List;

/**
 * @program: project-market
 * @description: wxOrder
 * @author: shiyue
 * @create: 2021/12/2 14:57
 **/
@Data
public class OrderListVO {
    public OrderListVO() {
    }

    private Integer total;
    private Integer pages;
    private Integer limit;
    private Integer page;
    private List<InnerOrderVO> list;

    public OrderListVO(Integer total, Integer page, Integer limit, List<InnerOrderVO> list) {
        this.total = total;

        if (total%limit!=0) {
            this.pages = total / limit+1;
        }else {
            this.pages = total / limit;
        }

        this.limit = limit;
        this.page = page;
        this.list = list;
    }
}
